package com.brainhealth.web;

import com.brainhealth.customer.service.IChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author wll
 */
@Component
public class InitData {

    @Autowired
    IChatService chatService;

    @PostConstruct
    public void init() {
        //初始化聊天模板数据
        chatService.refreshChatTemplate();
    }

    @PreDestroy
    public void destroy() {
        System.out.println("销毁");
    }


}
